<template>
  <el-container>
    <el-container>
      <el-header el-header class="inductiontabletitle">
        <el-col :span="24"><span>待入职人员信息表</span></el-col>
      </el-header>

      <induction-user-table :tableData="tableData"></induction-user-table>
    </el-container>

    <induction-user-dialog></induction-user-dialog>
  </el-container>
</template>

  <script>
import InductionUserDialog from "./InductionUserDialog.vue";
import InductionUserTable from "./InductionUserTable.vue";

export default {
  components: {
    InductionUserTable,
    InductionUserDialog,
  },

  data() {
    return {
      // table所需数据
      tableData: [], // 总数据
    };
  },

  created() {
    this.getuserbystatus(3);
  },

  methods: {
    //  同步数据

    //获得人员信息
    async getuserbystatus(index) {
      this.tabletype = 3;
      let datas = { status: index };
      this.$axios
        .post("api/member/getuserbystatus", datas)
        .then((response) => {
          this.tableData = response.data;
        })
        .catch(function (error) {
          console.log(error);
        });
    },
  },
};
</script>

  <style>
.inductiontabletitle {
  max-height: 30px;
  font-size: 25px;
  color: #58B7FF;
}
.el-aside {
  height: 85vh;
}
</style>
